from selenium import webdriver
import time
from selenium.webdriver.common.by import By


driver=webdriver.Chrome(r'D:\bianchengerbianchenger\driver\chromedriver.exe')
driver.get('http:www.baidu.com')
driver.maximize_window()

time.sleep(2)
p = driver.find_elements(By.CSS_SELECTOR,'span.title-content-title')
for i in p:
    print(i.text)